home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 2336 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.4 KB

  1. Path: mail2news.demon.co.uk!hpl3sn03.cern.ch
  2. From: Dan Pop <danpop@mail.cern.ch>
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Segmentation fault at return statement. Can't figure out ....
  5. Date: Sat, 20 Jan 1996 19:29:24 +0100
  6. Organization: CERN European Lab for Particle Physics
  7. Message-ID: <9601201829.AA02117@dxmint.cern.ch>
  8. References: <4dm2n1$egk@murphy.servtech.com> <4dop08$kdi@bcfreenet.seflin.lib.fl.us>
  9. X-NNTP-Posting-Host: hpl3sn03.cern.ch
  10. X-Newsreader: NN version 6.5.0 #7 (NOV)
  11. X-Mail2News-Path: frigate.doc.ic.ac.uk!dxmint.cern.ch!hpl3sn03.cern.ch
  12.  
  13. z007400b@bcfreenet.seflin.lib.fl.us (Ralph Silverman) writes:
  14.  
  15. >Avijit Dasgupta (avi@servtech.com) wrote:
  16. >
  17. >: test.c:
  18. >
  19. >: test()
  20. >: {
  21. >
  22. >: .
  23. >: ..
  24. >: .
  25. >: 83: return(999); <----- Segmentation fault at this stmt.
  26. >: }
  27. >
  28. >--
  29. >********begin r.s. response*********
  30.          ^^^^^^^^^^^^^^^^^^^
  31. Very important hint.  Without it I would have never figured out where the
  32. "r.s. response" begins.
  33.  
  34. >    'test'
  35. >    is likely to be
  36. >    a command of
  37. >    the
  38. >        operating system
  39.  
  40. So what?  There's no possible conflict/interaction between a function
  41. name in a C program and the name of an OS command.
  42.  
  43. >    1)    look it up.
  44. >    2)    rename yours.
  45.                 ^^^^^^^^^^^^^
  46. Why???
  47.  
  48. >********end r.s. response***********
  49.          ^^^^^^^^^^^^^^^^^
  50. See my first comment, above.
  51.  
  52. Dan
  53. -- 
  54. Dan Pop
  55. CERN, CN Division
  56. Email: danpop@mail.cern.ch 
  57. Mail:  CERN - PPE, Bat. 31 R-004, CH-1211 Geneve 23, Switzerland
  58.